const path = require('path')
const nodeExternals = require('webpack-node-externals')
console.log(path.resolve(__dirname, "dist"))

module.exports = {
    entry: './src/main.js',
    mode: 'production',
    target: 'node',
    output: {
        path: path.resolve(__dirname, "dist_server"),
        filename: 'index.js',
        publicPath: path.resolve(__dirname, "static")
    },
    node: {},
    externals: [
        nodeExternals()
    ],
    module: {},
    plugins: [],
    resolve: {}
}